package com.cn.zengzeng.spbzengzeng.controller;

import com.alibaba.fastjson.JSONObject;
import com.cn.zengzeng.spbzengzeng.utils.CheckUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: zhangzengzeng
 * @Date: 2021/12/6 11:39
 */
@RestController
@RequestMapping("/format")
@Slf4j
public class JsonExecuteController {
    @RequestMapping(value = "/getJson",method = RequestMethod.GET)
    public JSONObject getJson(String json){
        log.info("入参数据:{}",json);
        return CheckUtils.getJson(json);
    }
}
